import GeoIP
gcity = GeoIP.open("/usr/local/share/GeoIP/GeoLiteCityLatest.dat", GeoIP.GEOIP_MEMORY_CACHE)
gcityv6 = GeoIP.open("/usr/local/share/GeoIP/GeoLiteCityv6.dat", GeoIP.GEOIP_MEMORY_CACHE)
print gcity.record_by_addr('59.66.132.0')['latitude']
print gcity.record_by_addr('59.66.132.0')['country_name']
print gcityv6.record_by_addr_v6('2001:200::')
